#!/usr/bin/make -f

ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-
export CC=$(DEB_HOST_GNU_TYPE)-gcc
export LD=$(DEB_HOST_GNU_TYPE)-gcc
endif

export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

documentation: configure
	make man

configure:
	make ${DEFCONFIG}

build: documentation configure
	dh $@

%:
	echo $@
	dh $@

override_dh_installchangelogs:
	true

override_dh_installdocs:
	true
